﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using PictureBoard4.Shape;

namespace PictureBoard4.Shape
{
   public class Pencil:Shape
   {
        public override bool Draw(System.Drawing.Graphics g)
        {
            Point[] point = new Point[list.Count];
            for (int i = 0; i < list.Count; i++)
            {
                point[i] = list[i];
            }
            Pen pen = new Pen(Tool.SColor, Tool.SWidth);
            if (point.Length > 1)
            {
                g.DrawLines(pen, point);
            }
            return true;
        }
        public override bool GetBound(ref Point StartPoint, ref Point EndPoint)
        {
            return false;
        }

        public override void Move(Point Point)
        {
            throw new NotImplementedException();
        }

        public override void Add(Point point)
        {
            list.Add(point);
        }
   }
}
